from dash import html

def teacher_info(teacher_data: dict):
    return html.Div([
        html.Table(
            [html.Tr([html.Td("学科"),html.Td("教师")])]
            +
            [
                html.Tr([html.Td(sub_Name),html.Td(bas_Name)]) 
                for sub_Name,bas_Name in zip(teacher_data['sub_Name'],teacher_data['bas_Name'])
            ], 
            style={'width': '80%', 'display': 'table', 'tableLayout': 'fixed'})
        ])